<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{ post.title }}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            margin: 50px;
            background-color: #f5f5f5;
            color: #333;
        }
        .article-container {
            background: #fff;
            padding: 20px;
            border: 1px solid #ddd;
        }
        .article-title {
            text-align: center;
            font-size: 30px;
            color: #333;
            margin-bottom: 10px;
        }
        .article-body {
            font-size: 20px;
            color: #666;
        }
        .article-meta {
            text-align: center;
            font-size: 14px;
            color: #999;
            margin-bottom: 20px;
        }
        a {
            text-decoration: none;
            color: #0077cc;
            margin-left: 20px;
        }
        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <div class="article-container">
        <div class="article-title">{{ post.title }}</div>
        <div class="article-meta">
            作者：{{ post.author }}<br>
            创建时间：{{ post.created_on|date:"Y-m-d H:i" }}<br>
            更新时间：{{ post.updated_on|date:"Y-m-d H:i" }}
        </div> 
        <div class="article-body">{{ post.body }}</div>
        <a href="{% url 'post_list' %}">返回首页</a>
    </div>
</body>
</html>